package com.lovo.ssc.service.impl;

import com.lovo.ssc.entity.SysGoods2;
import com.lovo.ssc.mapper.SysGoods2Mapper;
import com.lovo.ssc.service.ISysGoods2Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 总库存商品表 服务实现类
 * </p>
 *
 * @author lovo
 * @since 2022-07-07
 */
@Service
public class SysGoods2ServiceImpl extends ServiceImpl<SysGoods2Mapper, SysGoods2> implements ISysGoods2Service {

    @Override
    public void updateScope(Integer id,Integer newScope) {
         SysGoods2 sysGoods2=  baseMapper.selectById(id);
            sysGoods2.setScope(newScope);

         baseMapper.update(sysGoods2,null);
    }
}
